package kr.hkit.powerjava.chapter06;

public class Test1 {
	public static void main(String[] args) {
		/*
		 * soLvFirst(); soLvsecond(6); soLvthird(200);
		 */
		soLvThirdSwitch(200);
	}

	private static void soLvThirdSwitch(int size) {
		switch (size / 100) {

			case 0:
				System.out.println("small");
				break;
			case 1:
				System.out.println("medium");
				break;
			default:
				System.out.println("large");

		}

	}

	private static void soLvthird(int size) {
		if (size < 100)
			System.out.println("small");
		else if (size < 200)
			System.out.println("medium");
		else
			System.out.println("large");
	}

	private static void soLvsecond(int k) {
		System.out.printf("k = %d", k);

		if (k == 0) {
			System.out.println("A");
		} else if (k > 3) {
			System.out.println("B");
		} else {
			System.out.println("c");
		}
	}

	private static void soLvFirst() {

		int n = 100;

		if (n >= 100)
			System.out.println("large");
		else
			System.out.println("small");

	}

}
